<include file="Public:header" />
<div style="boder:1px solid #ccc;margin:10px 10px 0px 10px;">
    <div style="border:1px solid #ccc;height:40px;padding:0 0 0 20px;line-height:40px;">
           查看商店地址 Show Shop Address
    </div>
    <form action="{:U('WebsiteContentCheck/index')}" method="post">
    <div style="border:1px solid #ccc;height:auto;padding:10px 0px 10px 13px;margin-top:5px;"> 
                    <select name="column_id">
					    <option value="0">请选择栏目</option>
                        <foreach name="columnName" item="val">
                        <option value="{$val.id}" <if condition="$val.id eq $column_id">selected</if> >{$val.column_name}</option>
                        </foreach>
                    </select>
                    <input type="submit" name="show" value="显示" />
    </div>
	</form> 
    <div style="border:1px solid #ccc;margin:5px 0px 5px 0px;padding:5px 0px 5px 10px;">
        <table>
		      <tr>
			       <td colspan="4">
                       <input type="button" name="return" value="返回" onclick="window.history.back()" />
				   </td>
              </tr>
              <foreach name="addressResult" item="val">
              <tr>
                  <th>商店名称：</th>
                  <td>
                      <input type="hidden" name="id[]" value="{$val.id}">
                      <input type="hidden" name="column_id" value="{$column_id}" />
                      <input type="text" name="shop_name[]" value="{$val.shop_name}" size="50" />
                  </td>
              </tr>
              <tr>
                  <th>商店地址：</th>
                  <td>
                      <input type="text" name="shop_address[]" value="{$val.shop_address}" size="50" />
                  </td>
              </tr>
              <tr>
                  <th>商店电话：</th>
                  <td>
                      <input type="text" name="shop_telno[]" value="{$val.shop_telno}" size="50" />
                  </td>
              </tr>
              <tr>
                  <th>简介：</th>
                  <td><textarea id="shop_describe_{$val.id}" name="shop_describe[]" style="width:800px;height:245px;visibility:hidden;">{$val.shop_describe}</textarea></td>
              </tr>
              <tr>
                  <th>内容：</th>
                  <td><textarea id="shop_content_{$val.id}" name="shop_content[]" style="width:800px;height:245px;visibility:hidden;">{$val.shop_content}</textarea></td>
              </tr>
              <tr>
                  <th>创建时间</th>
                  <td>
                      <input type="text" name="create_time" value="<if condition='$val.create_time neq ""'>{$val.create_time}<else/><php>echo date('Y-m-d H:i:s');</php></if>" readonly="readonly"/>
                  </td>
              </tr>
              <script type="text/javascript">
                    KindEditor.ready(function(K){
                            K.create('#shop_describe_{$val.id}');
                            K.create('#shop_content_{$val.id}');
                    });
              </script>
              </foreach>
        </table> 
    </div>
</div>

  </body>
</html>

